package com.webank.wedatasphere.qualitis.listener;

import com.webank.wedatasphere.qualitis.rule.entity.RuleDetailInfoVo;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * 自定义事件
 */
public class TaskExecuteEvent extends ApplicationEvent {

    private Long projectId;

    private List<RuleDetailInfoVo> thatObj;

    private String projectName;

    private String beginTime;
    private int sortValue;

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public List<RuleDetailInfoVo> getThatObj() {
        return thatObj;
    }

    public void setThatObj(List<RuleDetailInfoVo> thatObj) {
        this.thatObj = thatObj;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public int getSortValue() {
        return sortValue;
    }

    public void setSortValue(int sortValue) {
        this.sortValue = sortValue;
    }

    public TaskExecuteEvent(Object source, Long projectId, List<RuleDetailInfoVo> thatObj, String projectName, String beginTime, int sortValue) {
        super(source);
        this.projectId = projectId;
        this.thatObj = thatObj;
        this.projectName = projectName;
        this.beginTime = beginTime;
        this.sortValue = sortValue;
    }

    public TaskExecuteEvent(Object source) {
        super(source);
    }


}
